<?php

require __DIR__ . '/vendor/autoload.php';
$entityManager = require __DIR__ . '/bootstrap.php';

$product = new \app\entities\Product();
$product->setName($argv[1]);

$entityManager->persist($product);
$entityManager->flush();

echo "Created Product with ID " . $product->getId() . "\n";
